{extend name="public/base" /}
{block name="style"}
<link rel="stylesheet" href="__INDEX__/css/swiper-5.4.5.min.css">
<link rel="stylesheet" href="__INDEX__/css/index.css">
<link rel="stylesheet" href="__INDEX__/css/news.css">
{/block}
{block name="content"}
<div class="news-content">
    <div class="news-banner">
        <img src="__INDEX__/images/newshead.png" alt="">
    </div>
    <div class="news-content-main">
        <div class="news-content-main-left">
            <div class="news-cate-title-content">
                <div class="news-cate-title">
                    <span>新闻动态</span>
                </div>
            </div>
            <ul>
                {foreach name="newsList" item="item"}
                <li>
                    <div class="list-left">
                        <a href="/Index/News/detail?id={$item.id}" style="background-image: url({$item.img_url});" target="_blank"></a>
                    </div>
                    <div class="list-right">
                        <div class="title"><a href="/Index/News/detail?id={$item.id}">{$item['title']}</a></div>
                        <div class="desc"><a href="/Index/News/detail?id={$item.id}">{$item['desc']}</a></div>
                        <div class="time">{$item['create_time']}</div>
                    </div>
                </li>
                {/foreach}
            </ul>
        </div>
        <div class="news-content-main-right">
            <div class="news-cate-recommend-title">
                <span>推荐文章</span>
            </div>
            <ol>
                {foreach name="newsList" item="item" index="i"}
                    <li>
                        <div class="list-title">
                            <a href="/Index/News/detail?id={$item.id}" target="_blank">
                                {$i}、 {$item['title']}
                            </a>
                        </div>
                    </li>
                {/foreach}
            </ol>
        </div>
    </div>
</div>
{/block}